﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Newtonsoft.Json;
using AIWhitelist.Framework.Common;

namespace AIWhitelist
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            try
            {
                Application.Run(new frmMain());
            }
            catch (Exception ex)
            {
//                MessageBox.Show($"软件发生异常! 请将问题反馈给我!{ex.Message}");
//#if !DEBUG
//                Process.Start("https://www.cnblogs.com/jonneydong/p/9998324.html");
//#endif
                Console.WriteLine(ex);
            }

            //Test only
            //RoutineData ro = new RoutineData();
            //ro.RoutineID = 0;
            //ro.RoutineName = "TestName";
            //ro.Locations = new List<Location>() { new Location(111, 112), new Location(223, 779) };
            //string json = JsonConvert.SerializeObject(ro);
            //Console.WriteLine(json);

            //RoutineData readRo = JsonConvert.DeserializeObject<RoutineData>(json);
            //
        }
    }
}
